package day03.lianxi.duotai;

public class Lian04 {
    public static void main(String[] args) {

       Fu f= new Zi();
       f.eat();
        System.out.println(f.num);
    }
}
class Fu{
    int num=10;
    public void eat(){
        System.out.println("fu");
    }
}
class Zi extends Fu{
    int num=20;
    @Override
    public void eat() {
        System.out.println("zi");
    }
}
